package net.sevear.chaos.event
{
	import flash.events.Event;
	
	public class ChaosSitesEvent extends Event
	{
		public static const LISTEN_START		:String = "Listening started";
		public static const LISTEN_CLOSED		:String = "Listening closed";
		
		public static const SITE_CONNECTED		:String = "Site connected";
		public static const SITE_STARTUP		:String = "Site Startup";
		public static const SITE_CLOSED			:String = "Site Closed";
		
		public static const START_LISTEN_OFFLINE:String = "Start Listen Offline";
		
		public static const NEW_TRACK_ARRIVED	:String = "Site new track arrived";
		public static const START_PLAY_NEW_TRACK:String = "Start play new track";
		
		public var _id:int;
		public function ChaosSitesEvent(type:String,siteid:int=-1)
		{
			_id = siteid;
			super(type, false, false);
		}
		
		public function get siteID():int{
			return _id;
		}
	}
}